#ifndef __MSG_H__
#define __MSG_H__

#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include "debug.h"

#define SERVER_MSG_KEY 1234
#define CLIENT_MSG_KEY 4321

#define MSGMAX 512

#if 512>MSGMAX
	#define MSG_LEN	MSGMAX
#else
	#define MSG_LEN	512
#endif

#define MSG_BUF_LEN 	(MSG_LEN-sizeof(long int))

struct MsgMessage
{
    long int msgKey; /* used for client pid */
    char buff[MSG_BUF_LEN];
};

#endif
